package _3ChapterThree._7ChangeUnidirectionalAssociationToBidirectional.step3;

import java.util.HashSet;
import java.util.Set;

public class Customer {
    private Set<Order> _orders = new HashSet<>();

    Set<Order> friendOrders() {
        return _orders;
    }

    public void addOrder(Order arg) {
        arg.removeCustomer(this);
    }

    public void removeOrder(Order arg) {
        arg.removeCustomer(this);
    }
}
